package com.zr.service;

import com.zr.dao.MarkDao;

import net.sf.json.JSONObject;

public class MarkService {
	MarkDao markdao =new MarkDao();
	/**
	 * 返回所有课程记录的信息，按照easyui的datagrid要求的json格式
	 * @return
	 */
	public JSONObject  findAllRecord(int start,int rows,int sid){
		JSONObject  jObj = new JSONObject();
		jObj.put("total", markdao.findAllMarkCount(sid));
		jObj.put("rows", markdao.findAllMark(start, rows, sid));
		return  jObj;
	}

}
